package cn.lili.controller;

import cn.lili.common.vo.ResponseBean;
import cn.lili.modules.entity.AppVideosCeshi;
import cn.lili.modules.service.AppVideosCeshiService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * @author:xiangqian
 * @date: 2024/3/8 9:21
 */
@RestController
@AllArgsConstructor
@Api(tags = "视频信息管理")
@RequestMapping("/videos")
public class AppVideosCeshiController {

    private AppVideosCeshiService appVideosCeshiService;

    @ApiModelProperty(value = "视频信息分页查询")
    @GetMapping("/Increase/QueryVideoListV2")
    public ResponseBean page(AppVideosCeshi appVideosCeshi) {
        return ResponseBean.success(appVideosCeshiService.page(appVideosCeshi));
    }

    @ApiModelProperty(value = "上传视频")
    @PostMapping("/Increase/Upload_videoV2")
    public ResponseBean save(@RequestBody AppVideosCeshi appVideosCeshi) {
        return ResponseBean.success(appVideosCeshiService.saveVideo(appVideosCeshi));
    }
}
